package com.ido.exception;

import lombok.Getter;

/**
 * 全局异常码
 */
@Getter
public enum BaseResult implements IResult {

    SUCCESS(200, "请求成功"),
    FAILURE(-1, "请求失败"),
    LOGIN_EXPIRE(401, "登录已过期"),
    REQUEST_PARAMETER_ERROR(1001, "参数错误")
    ;


    private final Integer code;

    private final String msg;

    BaseResult(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
